package com.future.direction.data;


import com.future.direction.data.bean.BaseBean;
import com.future.direction.data.bean.CourseAlbumBean;
import com.future.direction.data.bean.UserSignatureBean;
import com.future.direction.data.bean.WeekRecommendBean;
import com.future.direction.data.http.ApiService;
import com.future.direction.presenter.contract.MainHomeContract;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by ZHP on 2017/11/6.
 */

public class MainHomeModel implements MainHomeContract.IMainHomeModel {

    private ApiService mApiService;

    public MainHomeModel(ApiService apiService) {
        this.mApiService = apiService;
    }


    @Override
    public Observable<BaseBean<UserSignatureBean>> usersignature() {
        return mApiService.usersignature();
    }

    @Override
    public Observable<BaseBean<List<WeekRecommendBean>>> weekrecommend() {
        return mApiService.weekrecommend();
    }

    @Override
    public Observable<BaseBean<List<CourseAlbumBean>>> courseAlbum(int pageNumber, int pageSize) {
        return mApiService.courseAlbum(pageNumber, pageSize);
    }
}
